package abbr

const StateAbbrLen = 69;
func AbbrToInt(abbr string) int
{
out := 0;
switch abbr {
case "ab": out=0 ;// Alabama
case "ak": out=1 ;// Alaska
case "ar": out=2 ;// Arkansas
case "az": out=3 ;// Arizona
case "ca": out=4 ;// California
case "co": out=5 ;// Colorado
case "ct": out=6 ;// Connecticut
case "de": out=7 ;// Delaware
case "dc": out=8 ;// District of Columbia
case "fl": out=9 ;// Florida
case "ga": out=10 ;// Georgia
case "hi": out=11 ;// Hawaii
case "id": out=12 ;// Idaho
case "il": out=13 ;// Illinois
case "in": out=14 ;// Indiana
case "ia": out=15 ;// Iowa
case "ks": out=16 ;// Kansas
case "ky": out=17 ;// Kentucky
case "la": out=18 ;// Louisiana
case "me": out=19 ;// Maine  
case "md": out=20 ;// Maryland
case "ma": out=21 ;// Massachusetts
case "mi": out=22 ;// Michigan
case "mn": out=23 ;// Minnesota
case "ms": out=24 ;// Mississippi
case "mo": out=25 ;// Missouri
case "mt": out=26 ;// Montana
case "ne": out=27 ;// Nebraska
case "nv": out=28 ;// Nevada
case "nh": out=29 ;// New Hampshire
case "nj": out=30 ;// New Jersey
case "nm": out=31 ;// New Mexico
case "ny": out=32 ;// New York
case "nc": out=33 ;// North Carolina
case "nd": out=34 ;// North Dakota
case "oh": out=35 ;// Ohio
case "ok": out=36 ;// Oklahoma
case "or": out=37 ;// Oregon
case "pa": out=38 ;// Pennsylvania
case "pr": out=39 ;// Puerto Rico
case "ri": out=40 ;// Rhode Island
case "sc": out=41 ;// South Carolina
case "sd": out=42 ;// South Dakota
case "tn": out=43 ;// Tennessee
case "tx": out=44 ;// Texas
case "ut": out=45 ;// Utah
case "vt": out=46 ;// Vermont
case "va": out=47 ;// Virginia
case "vi": out=48 ;// Virgin Islands 	 
case "wa": out=49 ;// Washington
case "wv": out=50 ;// West Virginia
case "wi": out=51 ;// Wisconsin
case "wy": out=52 ;// Wyoming
case "al": out=53 ;// Alberta
case "bc": out=54 ;// British Columbia
case "mb": out=55 ;// Manitoba
case "nb": out=56 ;// New Brunswick
case "lb": out=57 ;// Labrador
case "nf": out=58 ;// Newfoundland
case "nt": out=59 ;// Northwest Territories
case "ns": out=60 ;// Nova Scotia
case "nu": out=61 ;// Nunavut
case "on": out=62 ;// Ontario
case "qc": out=63 ;// Québec
case "sk": out=64 ;// Saskatchewan
case "yt": out=65 ;// Yukon
case "dengl": out=66 ;// Greenland (Denmark)
case "fraspm": out=67;
default: out=68;
}; // St. Pierre and Miquelon (France)
return out;
}
